<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">

    <title>基础信息修改</title>

    <link rel="stylesheet" href="/static/css-lib/bootstrap.min.css" />

    <style>
        .head-btn-box {
            position: absolute;
            top: 10px;
            right: 30px;
        }
        .input-box {
            border: 1px solid #ccc;
            font-size: 14px;
            -webkit-border-radius: 0 4px 4px 0;
            -moz-border-radius: 0 4px 4px 0;
            border-radius: 0 4px 4px 0;
            width: 100%;
            background: #fff;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">基础信息修改</a>
            </div>
            <div class="head-btn-box">
                <button id="submit-btn" type="button" class="btn btn-primary">提交</button>
            </div>
        </div>
    </nav>

    <div class="container-fluid" style="margin-top: 55px;">
        <div class="row">
            <!-- 姓名 -->
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">修改姓名</div>
                    <div class="panel-body">
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">原姓名</span>
                                <input type="text" class="form-control" value="${TeacherInfo.realName}" disabled />
                            </div>
                        </form>
                        <br/>
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">姓名</span>
                                <input id="name-input" type="text" class="form-control" maxlength="15" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- 性别 -->
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">修改性别</div>
                    <div class="panel-body">
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">原性别</span>
                                <c:choose>
                                    <c:when test="${TeacherInfo.sex == 0}">
                                        <input type="text" class="form-control" value="男" disabled />
                                    </c:when>
                                    <c:otherwise>
                                        <input type="text" class="form-control" value="女" disabled />
                                    </c:otherwise>
                                </c:choose>

                            </div>
                        </form>
                        <br/>
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">性别</span>
                                <div class="input-box">
                                    <select id="sex-input" class="form-control">
                                        <option value="0" selected>男</option>
                                        <option value="1">女</option>
                                    </select>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <!-- 学校 -->
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">修改学校</div>
                    <div class="panel-body">
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">原学校</span>
                                <input type="text" class="form-control" value="${TeacherInfo.school}" disabled />
                            </div>
                        </form>
                        <br/>
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">学校</span>
                                <input id="school-input" type="text" class="form-control" maxlength="20" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <!-- 年级 -->
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">修改年级</div>
                    <div class="panel-body">
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">原年级</span>
                                <c:choose>
                                    <c:when test="${TeacherInfo.grade == null}">
                                        <input id="grade" type="text" class="form-control" value="" disabled />
                                    </c:when>
                                    <c:otherwise>
                                        <c:if test="${TeacherInfo.grade == 0}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="2015级" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.grade == 1}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="2016级" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.grade == 2}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="2017级" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.grade == 3}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="2018级" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.grade == 4}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="2019级" />" disabled />
                                        </c:if>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </form>
                        <br/>
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">年级</span>
                                <div class="input-box">
                                    <select id="grade-input" class="form-control">
                                        <option value="0">2015级</option>
                                        <option value="1">2016级</option>
                                        <option value="2">2017级</option>
                                        <option value="3" selected>2018级</option>
                                        <option value="4">2019级</option>
                                    </select>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <!-- 学历 -->
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">修改学历</div>
                    <div class="panel-body">
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">原学历</span>
                                <c:choose>
                                    <c:when test="${TeacherInfo.edu == null}">
                                        <input id="grade" type="text" class="form-control" value="" disabled />
                                    </c:when>
                                    <c:otherwise>
                                        <c:if test="${TeacherInfo.edu == 0}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="专科" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.edu == 1}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="本科" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.edu == 2}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="研究生" />" disabled />
                                        </c:if>
                                        <c:if test="${TeacherInfo.edu == 3}">
                                            <input id="grade" type="text" class="form-control" value="<c:out value="其他" />" disabled />
                                        </c:if>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </form>
                        <br/>
                        <form>
                            <div class="input-group">
                                <span class="input-group-addon">学历</span>
                                <div class="input-box">
                                    <select id="edu-input" class="form-control">
                                        <option value="0">专科</option>
                                        <option value="1" selected>本科</option>
                                        <option value="2">研究生</option>
                                        <option value="3">其他</option>
                                    </select>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 错误提示框 -->
    <div class="modal fade" id="errorBox" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">错误</h4>
                </div>
                <div id="modal-content" class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <script src="/static/js-lib/jquery-3.4.1.min.js"></script>
    <script src="/static/js-cus/teacher/Frame-ChangeBaseInfo.js"></script>
</body>
</html>